Skip to content

Conversation

Huangzizhou
Copy link
Contributor

Description

Implementation of Siggraph 2025 paper Geometric Contact Potential. The implementation includes the collision and friction potential, their gradient and Hessian.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have followed the project style guide
  • My code follows the clang-format style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Huangzizhou and others added 5 commits October 5, 2025 15:08
- Removed tangents.cpp and tangents.hpp from the IPC utility source files.
- Deleted finitediff.hpp as it was no longer needed.
- Updated MatrixCache.cpp to improve variable naming for clarity and consistency.
- Cleaned up CMakeLists.txt by removing references to tangents files.
- Deleted obsolete test data files related to nonlinear solve iterations and simple 2D cases.
- Adjusted test configurations to point to the correct data directory structure.
Copy link
Member

@zfergus zfergus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments. I'll finish reviewing this when I have some more downtime.


/// @brief Closest pair between a point and point.
enum class PointPointDistanceType {
AUTO ///< Automatically determine the closest pair.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should just be P_P?

/// @brief Face-vertex tangential collisions.
std::vector<FaceVertexTangentialCollision> fv_collisions;

double barrier_stiffness_;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this really be here? Perhaps its better place in the TangentialPotential class?

/// @brief Normal force magnitude
double normal_force_magnitude = 0;

std::shared_ptr<SmoothCollision> smooth_collision = nullptr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add doxygen comment

const std::function<double(double, double)>& blend_mu =
default_blend_mu);

void build_for_smooth_contact(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants